﻿@model Bug315.Models.WorkItemUpdateVm
@{
    //Layout = null;
}

<script>
    window.onload = function () {
        $("#Priority").val($("#Priority").attr("tempSelction"));
    }
</script>
<div>
    @using (Html.BeginForm())
    {
        <div>
            @Html.LabelFor(m => m.Title)<br />
        @Html.TextBoxFor(m => m.Title)
    </div>
        <div>
            @Html.LabelFor(m => m.DateCreated)<br />
            @Html.TextBoxFor(m => m.DateCreated)
        </div>
        <div>
            @Html.LabelFor(m => m.Priority)<br />
            @Html.DropDownListFor(m => m.Priority, new SelectList(Model.Priority, null, null, Model.SelectedPriority), new { tempSelction = Model.SelectedPriority })

  </div>
        <div>
          
        </div>
        
        
        
        <div>
            @Html.LabelFor(m => m.StepsToReproduce)<br />
            @Html.TextBoxFor(m => m.StepsToReproduce)
        </div>
        <div>
            <button type="submit" class="btn btn-danger">Submit</button>
        </div>
    }

</div>

